package homework_03.home_14;

import java.lang.reflect.Array;
import java.util.Scanner;

public class HomeWork_14 {
    /*输入三个整数x,y,z，请把这三个数由小到大输出。*/
    public static void main(String[] args) {
        System.out.println("请输入三个数字，分别为x、y、z");
        Scanner input = new Scanner(System.in);
        int[] x;
        x = new int[4];
        x[0]=input.nextInt();
        x[1]=input.nextInt();
        x[2]=input.nextInt();
        for (int i= 0;i<3;i++){
            for (int j = 0;j<i;j++){
                if(x[i]<x[j]){
                    x[i]=x[i]+x[j];
                    x[j]=x[i]-x[j];
                    x[i]=x[i]-x[j];
                }
            }
        }
        System.out.println(x[0]);
        System.out.println(x[1]);
        System.out.println(x[2]);
    }

}
